package com.bwie.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;

/**
 * @author lenovo
 */
@Document(indexName = "dishes")
@Data
public class EsDishes {

    @Id
    @Field(type = FieldType.Keyword)
    private Integer id;

    @Field(type = FieldType.Text)
    private String dishesUrl;

    @Field(type = FieldType.Text)
    private String dishesName;

    @Field(type = FieldType.Double)
    private BigDecimal dishesPrice;

    @Field(type = FieldType.Integer)
    private Integer dishesNum;

    @Field(type = FieldType.Integer)
    private Integer sortId;

    @Field(type = FieldType.Text)
    private String sortName;
}
